package Year2021.month10.Day21.Day27;

public abstract class Automobile{
    private String name;//名字
    private String licensePlate;//车牌;
    private int numberOfSeats;//座位数;
    private int dailyRent;//每日租金
    private String currentState;//当前状态;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLicensePlate() {
        return licensePlate;
    }

    public void setLicensePlate(String licensePlate) {
        this.licensePlate = licensePlate;
    }

    public int getNumberOfSeats() {
        return numberOfSeats;
    }

    public void setNumberOfSeats(int numberOfSeats) {
        this.numberOfSeats = numberOfSeats;
    }

    public int getDailyRent() {
        return dailyRent;
    }

    public void setDailyRent(int dailyRent) {
        this.dailyRent = dailyRent;
    }

    public String getCurrentState() {
        return currentState;
    }

    public void setCurrentState(String currentState) {
        this.currentState = currentState;
    }

    public Automobile(String name, String licensePlate,  int dailyRent, String currentState) {
        this.name = name;
        this.licensePlate = licensePlate;
        this.dailyRent = dailyRent;
        this.currentState = currentState;
    }
    public void show(){
        System.out.println("车"+"\t"+getName()+",车牌号为"+getLicensePlate()+",座位数为"+getNumberOfSeats()+"座"
        +",日租金为"+getDailyRent()+"元"+"\t"+getCurrentState());
    }
    public abstract double money(int days);
}
